package cn.sq.musicserver.plug.model.wpmusicapi.kg.entity;

import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: SQ
 * Date: 2021/1/6
 * Time: 12:02
 * Description:
 */
@NoArgsConstructor
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "WPQQMusicAPI下载返回参数", description = "WPQQMusicAPI下载返回参数")

public class APIDownloadResult {


    /**
     * status : 1
     * err_code : 0
     * data : {"hash":"1E3ED3FB00559DAFC985F58890BACBAF","timelength":255000,"filesize":4090342,"audio_name":"周杰伦 - 园游会","have_album":1,"album_name":"七里香","album_id":"971783","img":"http://imge.kugou.com/stdmusic/20150720/20150720211645985155.jpg","have_mv":1,"video_id":"592679","author_name":"周杰伦","song_name":"园游会","lyrics":"﻿[id:$00000000]\r\n[ar:周杰伦]\r\n[ti:园游会]\r\n[by:]\r\n[hash:40d1be6a0b328749a67df09dd43ba177]\r\n[al:]\r\n[sign:]\r\n[qq:]\r\n[total:253777]\r\n[offset:0]\r\n[00:00.77]周杰伦 - 园游会\r\n[00:02.14]作词：方文山\r\n[00:03.26]作曲：周杰伦\r\n[00:32.74]琥珀色黄昏像糖\r\n[00:34.31]在很美的远方\r\n[00:36.40]你的脸没有化妆\r\n[00:38.23]我却疯狂爱上\r\n[00:40.31]思念跟影子在傍晚\r\n[00:42.39]一起被拉长\r\n[00:44.37]我手中那张入场券陪我数羊\r\n[00:48.08]薄荷色草地芬芳\r\n[00:50.06]像风没有形状\r\n[00:52.10]我却能够牢记\r\n[00:53.73]你的气质跟脸庞\r\n[00:56.12]冷空气跟琉璃\r\n[00:57.66]在清晨很有透明感\r\n[01:00.04]像我的喜欢被你看穿\r\n[01:03.55]摊位上一朵艳阳\r\n[01:06.54]我悄悄出现你身旁\r\n[01:11.55]你慌乱的模样\r\n[01:13.33]我微笑安静欣赏\r\n[01:18.26]我顶着大太阳\r\n[01:20.14]只想为你撑伞\r\n[01:22.17]你靠在我肩膀\r\n[01:24.06]深呼吸怕遗忘\r\n[01:26.09]因为捞鱼的蠢游戏\r\n[01:27.96]我们开始交谈\r\n[01:30.13]多希望话题不断\r\n[01:31.75]园游会永不打烊\r\n[01:33.89]气球在我手上\r\n[01:35.87]我牵着你瞎逛\r\n[01:37.90]有话想对你讲\r\n[01:39.73]你眼睛却装忙\r\n[01:41.76]鸡蛋糕跟你嘴角果酱\r\n[01:44.05]我都想要尝\r\n[01:45.83]园游会影片在播放\r\n[01:48.01]这个世界约好一起逛\r\n[02:07.13]琥珀色黄昏像糖\r\n[02:08.75]在很美的远方\r\n[02:10.68]你的脸没有化妆\r\n[02:12.56]我却疯狂爱上\r\n[02:14.69]思念跟影子在傍晚\r\n[02:16.73]一起被拉长\r\n[02:18.81]我手中那张入场券陪我数羊\r\n[02:22.82]薄荷色草地芬芳\r\n[02:24.39]像风没有形状\r\n[02:26.52]我却能够牢记\r\n[02:28.15]你的气质跟脸庞\r\n[02:30.54]冷空气跟琉璃\r\n[02:31.91]在清晨很有透明感\r\n[02:34.55]像我的喜欢被你看穿\r\n[02:38.06]摊位上一朵艳阳\r\n[02:41.01]我悄悄出现你身旁\r\n[02:45.83]你慌乱的模样\r\n[02:47.81]我微笑安静欣赏\r\n[02:52.94]我顶着大太阳\r\n[02:54.56]只想为你撑伞\r\n[02:56.49]你靠在我肩膀\r\n[02:58.47]深呼吸怕遗忘\r\n[03:00.56]因为捞鱼的蠢游戏\r\n[03:02.51]我们开始交谈\r\n[03:04.52]多希望话题不断\r\n[03:06.19]园游会永不打烊\r\n[03:08.33]气球在我手上\r\n[03:10.31]我牵着你瞎逛\r\n[03:12.30]有话想对你讲\r\n[03:14.13]你眼睛却装忙\r\n[03:16.21]鸡蛋糕跟你嘴角果酱\r\n[03:18.50]我都想要尝\r\n[03:20.17]园游会影片在播放\r\n[03:22.36]这个世界约好一起逛\r\n","author_id":"3520","privilege":10,"privilege2":"1010","play_url":"https://webfs.yun.kugou.com/202103291057/8a5a4deba063226bb0a25c459ca70bbe/part/0/960117/KGTX/CLTX001/1e3ed3fb00559dafc985f58890bacbaf.mp3","authors":[{"author_id":"3520","author_name":"周杰伦","is_publish":"1","sizable_avatar":"http://singerimg.kugou.com/uploadpic/softhead/{size}/20180515/20180515002522714.jpg","avatar":"http://singerimg.kugou.com/uploadpic/softhead/400/20180515/20180515002522714.jpg"}],"is_free_part":1,"bitrate":128,"recommend_album_id":"971783","audio_id":"48743","has_privilege":true,"play_backup_url":"https://webfs.cloud.kugou.com/202103291057/36fbfcaf058e3a4662ba74bb79c11ec8/part/0/960117/KGTX/CLTX001/1e3ed3fb00559dafc985f58890bacbaf.mp3","trans_param":{"hash_offset":{"start_byte":0,"end_byte":960117,"start_ms":0,"end_ms":60000,"offset_hash":"6319409BB7CB00077FE45659985C63ED","file_type":0},"musicpack_advance":1,"pay_block_tpl":1,"display":0,"display_rate":0,"appid_block":"3124","cpy_grade":5,"cpy_level":1,"cid":2556357,"cpy_attr0":0}}
     */

    private int status;
    private int err_code;
    private DataBean data;

    @NoArgsConstructor
    @Data
    public static class DataBean {
        /**
         * hash : 1E3ED3FB00559DAFC985F58890BACBAF
         * timelength : 255000
         * filesize : 4090342
         * audio_name : 周杰伦 - 园游会
         * have_album : 1
         * album_name : 七里香
         * album_id : 971783
         * img : http://imge.kugou.com/stdmusic/20150720/20150720211645985155.jpg
         * have_mv : 1
         * video_id : 592679
         * author_name : 周杰伦
         * song_name : 园游会
         * lyrics : ﻿[id:$00000000]
         [ar:周杰伦]
         [ti:园游会]
         [by:]
         [hash:40d1be6a0b328749a67df09dd43ba177]
         [al:]
         [sign:]
         [qq:]
         [total:253777]
         [offset:0]
         [00:00.77]周杰伦 - 园游会
         [00:02.14]作词：方文山
         [00:03.26]作曲：周杰伦
         [00:32.74]琥珀色黄昏像糖
         [00:34.31]在很美的远方
         [00:36.40]你的脸没有化妆
         [00:38.23]我却疯狂爱上
         [00:40.31]思念跟影子在傍晚
         [00:42.39]一起被拉长
         [00:44.37]我手中那张入场券陪我数羊
         [00:48.08]薄荷色草地芬芳
         [00:50.06]像风没有形状
         [00:52.10]我却能够牢记
         [00:53.73]你的气质跟脸庞
         [00:56.12]冷空气跟琉璃
         [00:57.66]在清晨很有透明感
         [01:00.04]像我的喜欢被你看穿
         [01:03.55]摊位上一朵艳阳
         [01:06.54]我悄悄出现你身旁
         [01:11.55]你慌乱的模样
         [01:13.33]我微笑安静欣赏
         [01:18.26]我顶着大太阳
         [01:20.14]只想为你撑伞
         [01:22.17]你靠在我肩膀
         [01:24.06]深呼吸怕遗忘
         [01:26.09]因为捞鱼的蠢游戏
         [01:27.96]我们开始交谈
         [01:30.13]多希望话题不断
         [01:31.75]园游会永不打烊
         [01:33.89]气球在我手上
         [01:35.87]我牵着你瞎逛
         [01:37.90]有话想对你讲
         [01:39.73]你眼睛却装忙
         [01:41.76]鸡蛋糕跟你嘴角果酱
         [01:44.05]我都想要尝
         [01:45.83]园游会影片在播放
         [01:48.01]这个世界约好一起逛
         [02:07.13]琥珀色黄昏像糖
         [02:08.75]在很美的远方
         [02:10.68]你的脸没有化妆
         [02:12.56]我却疯狂爱上
         [02:14.69]思念跟影子在傍晚
         [02:16.73]一起被拉长
         [02:18.81]我手中那张入场券陪我数羊
         [02:22.82]薄荷色草地芬芳
         [02:24.39]像风没有形状
         [02:26.52]我却能够牢记
         [02:28.15]你的气质跟脸庞
         [02:30.54]冷空气跟琉璃
         [02:31.91]在清晨很有透明感
         [02:34.55]像我的喜欢被你看穿
         [02:38.06]摊位上一朵艳阳
         [02:41.01]我悄悄出现你身旁
         [02:45.83]你慌乱的模样
         [02:47.81]我微笑安静欣赏
         [02:52.94]我顶着大太阳
         [02:54.56]只想为你撑伞
         [02:56.49]你靠在我肩膀
         [02:58.47]深呼吸怕遗忘
         [03:00.56]因为捞鱼的蠢游戏
         [03:02.51]我们开始交谈
         [03:04.52]多希望话题不断
         [03:06.19]园游会永不打烊
         [03:08.33]气球在我手上
         [03:10.31]我牵着你瞎逛
         [03:12.30]有话想对你讲
         [03:14.13]你眼睛却装忙
         [03:16.21]鸡蛋糕跟你嘴角果酱
         [03:18.50]我都想要尝
         [03:20.17]园游会影片在播放
         [03:22.36]这个世界约好一起逛
         * author_id : 3520
         * privilege : 10
         * privilege2 : 1010
         * play_url : https://webfs.yun.kugou.com/202103291057/8a5a4deba063226bb0a25c459ca70bbe/part/0/960117/KGTX/CLTX001/1e3ed3fb00559dafc985f58890bacbaf.mp3
         * authors : [{"author_id":"3520","author_name":"周杰伦","is_publish":"1","sizable_avatar":"http://singerimg.kugou.com/uploadpic/softhead/{size}/20180515/20180515002522714.jpg","avatar":"http://singerimg.kugou.com/uploadpic/softhead/400/20180515/20180515002522714.jpg"}]
         * is_free_part : 1
         * bitrate : 128
         * recommend_album_id : 971783
         * audio_id : 48743
         * has_privilege : true
         * play_backup_url : https://webfs.cloud.kugou.com/202103291057/36fbfcaf058e3a4662ba74bb79c11ec8/part/0/960117/KGTX/CLTX001/1e3ed3fb00559dafc985f58890bacbaf.mp3
         * trans_param : {"hash_offset":{"start_byte":0,"end_byte":960117,"start_ms":0,"end_ms":60000,"offset_hash":"6319409BB7CB00077FE45659985C63ED","file_type":0},"musicpack_advance":1,"pay_block_tpl":1,"display":0,"display_rate":0,"appid_block":"3124","cpy_grade":5,"cpy_level":1,"cid":2556357,"cpy_attr0":0}
         */

        private String hash;
        private int timelength;
        private int filesize;
        private String audio_name;
        private int have_album;
        private String album_name;
        private String album_id;
        private String img;
        private int have_mv;
        private String video_id;
        private String author_name;
        private String song_name;
        private String lyrics;
        private String author_id;
        private int privilege;
        private String privilege2;
        private String play_url;
        private int is_free_part;
        private int bitrate;
        private String recommend_album_id;
        private String audio_id;
        private boolean has_privilege;
        private String play_backup_url;
        private TransParamBean trans_param;
        private List<AuthorsBean> authors;

        @NoArgsConstructor
        @Data
        public static class TransParamBean {
            /**
             * hash_offset : {"start_byte":0,"end_byte":960117,"start_ms":0,"end_ms":60000,"offset_hash":"6319409BB7CB00077FE45659985C63ED","file_type":0}
             * musicpack_advance : 1
             * pay_block_tpl : 1
             * display : 0
             * display_rate : 0
             * appid_block : 3124
             * cpy_grade : 5
             * cpy_level : 1
             * cid : 2556357
             * cpy_attr0 : 0
             */

            private HashOffsetBean hash_offset;
            private int musicpack_advance;
            private int pay_block_tpl;
            private int display;
            private int display_rate;
            private String appid_block;
            private int cpy_grade;
            private int cpy_level;
            private int cid;
            private int cpy_attr0;

            @NoArgsConstructor
            @Data
            public static class HashOffsetBean {
                /**
                 * start_byte : 0
                 * end_byte : 960117
                 * start_ms : 0
                 * end_ms : 60000
                 * offset_hash : 6319409BB7CB00077FE45659985C63ED
                 * file_type : 0
                 */

                private int start_byte;
                private int end_byte;
                private int start_ms;
                private int end_ms;
                private String offset_hash;
                private int file_type;
            }
        }

        @NoArgsConstructor
        @Data
        public static class AuthorsBean {
            /**
             * author_id : 3520
             * author_name : 周杰伦
             * is_publish : 1
             * sizable_avatar : http://singerimg.kugou.com/uploadpic/softhead/{size}/20180515/20180515002522714.jpg
             * avatar : http://singerimg.kugou.com/uploadpic/softhead/400/20180515/20180515002522714.jpg
             */

            private String author_id;
            private String author_name;
            private String is_publish;
            private String sizable_avatar;
            private String avatar;
        }
    }
}
